//
//  LSZPlayImageTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/9/27.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZPlayImageTableViewCell.h"

@implementation LSZPlayImageTableViewCell
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.labelTime = [[UILabel alloc]initWithFrame:CGRectMake(15, 12,ScreenWidth-70, 15)];
        self.labelTime.font = FONT_18;
        [self addSubview:self.labelTime];
        
        UIImageView * imageView =[[UIImageView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(self.labelTime.frame)+13, 10, 10)];
        imageView.image = [UIImage imageNamed:@"首页_诗歌_对号"];
        [self addSubview:imageView];
        
        
        self.labelName = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imageView.frame)+6, CGRectGetMaxY(self.labelTime.frame)+12, WidthScal_320(230), 13)];
        self.labelName.font = FONT_12;
        self.labelName.textColor = RGBColor(142, 142, 142);
        [self addSubview:self.labelName];
        
        self.labelHowLong = [[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-60, 24, 60,12)];
        self.labelHowLong.textColor = RGBColor(128, 128, 128);
        self.labelHowLong.font = FONT_13;
        [self addSubview:self.labelHowLong];
    }
    return self;
}
- (void)clickOnThisSongToPlayPlayImageTableViewCell:(BOOL)isSystemRed
{
    if (isSystemRed == YES) {
        self.labelTime.textColor = redUIColor;
        self.labelName.textColor = redUIColor;
    }else{
        self.labelTime.textColor = titleColorLSZ;
        self.labelName.textColor = lightColor;
    }
}

@end
